@extends('admin.layout.index')
@section('content')
<div class="col-lg-12">
    <div class="card">
        <div class="card-action">
            修改信息内容
        </div>
        <div class="card-content">
            <form class="col s12" method="post" action="/admin/message/update?id={{ $data['id'] }}">
                {{ csrf_field() }}
                <div class="row">
                    <div class="input-field col s6">
                        <i class="material-icons prefix">
                            account_circle
                        </i>
                        <input id="icon_prefix" type="text" class="validate" disabled value="@if($data['fuid']) {{ $data['fusername'] }}@if($data['fumerchant']==0)（普通用户）@elseif($data['fumerchant']==1)（店主）@endif @elseif($data['faid']) {{ $data['faid'] }}（管理员）@endif">
                        <label for="icon_prefix" style="margin-top:-20px">
                            发件人
                        </label>
                    </div>
                    <div class="input-field col s6">
                        <i class="material-icons prefix">
                            account_circle
                        </i>
                        <input id="icon_telephone" type="tel" class="validate" disabled value="{{ $data['susername'] }}@if($data['sumerchant']==0)（普通用户）@elseif($data['sumerchant']==1)（店主）@endif">
                        <label for="icon_telephone" style="margin-top:-20px">
                            收件人
                        </label>
                    </div>
                </div>
                <div class="row">
                    <div class="input-field col s12">
                        <textarea style="padding:0;" id="textarea1" class="materialize-textarea" name="content">{{ $data['content'] }}</textarea>
                        <label for="icon_prefix" style="margin-top:-30px">
                            信息内容
                        </label>
                    </div>
                </div>
                <div class="row">
                    <div class="input-field col s12">
                        <input id="icon_telephone" type="tel" class="validate" disabled value="{{ date('Y-m-d H:i:s',$data['time']) }}">
                        <label for="textarea1" style="margin-top:-20px">
                            发送时间
                        </label>
                    </div>
                </div>
                <div class="row">
	                <div class="input-field col s6">　
	                   	<button type="submit" class="btn btn-info"> 修改</button>　
	                	<button type="reset" class="btn btn-danger"> 重置</button>
                	</div>
                </div>
            </form>
            <!-- <div class="clearBoth">
            </div> -->
        </div>
    </div>
</div>
@endsection